<!DOCTYPE HTML>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>装修任务列表</title>
    <link rel="stylesheet" type="text/css" href="../css/aui.css" />
    <link rel="stylesheet" type="text/css" href="../css/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="css/comm.css" />
    <link rel="stylesheet" type="text/css" href="css/customerservicelist.css" />
    <link rel="stylesheet" type="text/css" href="css/zxrenwu_list.css" />
    <link rel="stylesheet" type="text/css" href="../script/mui/mui.picker.min.css" />
    <link rel="stylesheet" type="text/css" href="../script/mui/mui.reset.css" />
    <link rel="stylesheet" type="text/css" href="../script/vant/index.css" />
    <style>
        .custom-title{
            width: 18px;
            height: 18px;
            border-radius: 7px 7px 7px 2px;
            position: absolute;
            top: -4px;
            right: -4px;
            font-size: 10px;
            font-family: Microsoft YaHei;
            font-weight: 400;
            color: #FFFFFF;
            text-align: center;
            line-height: 16px;
            z-index: 999;
            background: #ee0a24;
        }
        .van-calendar__selected-day{
            width: 32px;
            height: 32px;
            background-color: #289fff;
            border-radius: 50%;
        }
    </style>

</head>

<body>
    <div id="app" v-cloak>
        <van-calendar v-model="showCalender" :show-confirm="false" @confirm="onConfirm" :min-date="minDate" :max-date="maxDate"  >
            <template #top-info="day">
                <span v-if="getCount(day)>0" class="custom-title">
                    {{getCount(day)}}
                </span>
              </template>
              <!-- <template #bottom-info="day">
                <span class="custom-title">
                    {{getCount(day)}}
                </span>
              </template> -->
        </van-calendar>
        <div class="aui-content">
            <div class="boxarea mainbox" v-on:click="do_choose_time()" >
                <div class="app_list_txt noline">
                    <i class="icon iconfont icon-shijian1" style="font-size: 19px;"></i>
                    <span>任务日历</span>
                    <i class="icon iconfont icon-xiangyoujiantou"  style="float: right; font-weight: unset; font-size: 0.75rem; color: #CACED2;"></i>
                </div>
                <div class="gd-contain mt10" style="margin-top: 15px;">
                    <div class="rwbox_item">
                        <div class="rwlist">
                            您有未完成的历史任务
                            <label v-if="form.Incompletecout>0&&form.Incompletecout<=99" class="rwnum">{{form.Incompletecout}}</label>
                            <label v-if="form.Incompletecout>99" class="rwnum"><i class="icon iconfont icon-sandian" style="font-size: 10px;"></i></label>
                        </div>
                    </div>
                    <div class="rwbox_item">
                        <div class="rwlist">
                            您有预约的查验任务
                            <label v-if="form.ReserveCout>0&&form.ReserveCout<=99" class="rwnum">{{form.ReserveCout}}</label>
                            <label v-if="form.ReserveCout>99" class="rwnum"><i class="icon iconfont icon-sandian" style="font-size: 10px;"></i></label>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 巡查任务 -->
            <div  v-if="form.PatrolTask!=undefined&&form.PatrolTask.length>0" class="boxarea mainbox" >
                <div class="app_list_txt noline">
                    <span>巡查任务</span>
                    <span class="time">{{choosedatetime}}</span>
                </div>
                <div class="roomsummary">
                    <div class="room_itembox">
                        <div class="room_title" v-on:click="do_openResult(item.ID,1)" v-for="item in form.PatrolTask">
                            {{item.RoomName}}
                            <div class="room_right">
                                <i class="icon iconfont icon-xiangyoujiantou"></i>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <!-- 查验任务 -->
            <div  v-if="form.InspectionTask!=undefined&&form.InspectionTask.length>0" class="boxarea mainbox" >
                <div class="app_list_txt noline">
                    <span>查验任务</span>
                    <span class="time">{{choosedatetime}}</span>
                </div>
                <div class="roomsummary">
                    <div class="room_itembox">
                        <div class="room_title" v-on:click="do_openResult(item.RegisterID,2)" v-for="item in form.InspectionTask">
                            {{item.RoomName}}
                            <div class="room_right">
                                <i class="icon iconfont icon-xiangyoujiantou"></i>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
<script type="text/javascript " src="../script/api.js "></script>
<!-- <script type="text/javascript " src="../script/vue.js "></script> -->
<script type="text/javascript " src="../script/vant/vue.js"></script>
<script type="text/javascript " src="../script/vant/vant.js"></script>
<script type="text/javascript" src="../script/config.js"></script>
<script type="text/javascript" src="../script/common.js"></script>
<script type="text/javascript" src="../script/mui/mui.min.js"></script>
<script type="text/javascript" src="../script/mui/mui.picker.min.js"></script>
<script type="text/javascript" src="../script/mui/mui.poppicker.js"></script>
<script type="text/javascript" src="../script/aui-toast.js"></script>
<script type="text/javascript" src="../script/page/dateRangeUtil.js"></script>
<script type="text/javascript" src="../script/highcharts/highcharts.js"></script>
<script type="text/javascript" src="../script/highcharts/modules/exporting.js"></script>
<script type="text/javascript" src="js/zxrenwu_list.js"></script>

</html>
